package com.gxar.quick.ar.server.db.model;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 坑位表
 *
 * @author linsy
 * @version 1.0
 * @created 2023/11/3 10:50
 */
@Entity
@Getter
@Setter
@NoArgsConstructor
@Table(name = "slot")
public class SlotEntity implements Serializable {

    /**
     * 坑位ID
     */
    @Id
    private Long id;
    /**
     * 坑位名称
     */
    private String name;
    /**
     * 套餐id
     */
    @Column(nullable = false)
    private Long comboId;
    /**
     * 用户ID
     */
    @Column(nullable = false)
    private Long userId;
    /**
     * 作品id
     */
    @Column(nullable = false)
    private Long worksId;
    /**
     * 到期时间
     */
    private Date expireTime;
    /**
     * 状态：0-不可用，1-可用
     */
    @Column(nullable = false)
    private Integer status;
    /**
     * 描述信息
     */
    private String description;
    /**
     * 坑位配置信息
     */
    @Column(nullable = false)
    private String config;
    /**
     * 创建时间
     */
    @Column(nullable = false)
    private Date createdAt;
    /**
     * 创建人
     */
    @Column(nullable = false)
    private String creator;
    /**
     * 更新时间
     */
    @Column(nullable = false)
    private Date updatedAt;
    /**
     * 操作人
     */
    private String operator;

}
